package mapspinner.persistence.rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;

import mapspinner.TerrainKey;
import mapspinner.persistence.datatypes.TerrainData;
import mapspinner.persistence.datatypes.TerrainSettings;

public interface TerrainServer extends Remote {
	public TerrainSettings getSettings(String directory) throws RemoteException;

	public TerrainData getTerrainData(TerrainKey key, String directory)
			throws RemoteException;

	public void setSettings(String directory, TerrainSettings settings)
			throws RemoteException;

	public void setTerrainData(TerrainKey key, TerrainData mapData,
			String directory) throws RemoteException;
}
